package com.ftg.supermarket.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author 布衣
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class GoodsDto {

    private String goodsName;

    private Integer supplierId;

    private Double beginPrice;

    private Double endPrice;

    private Integer start;

    private Integer size;

    public Integer getStart() {
        return (start - 1) * size;
    }

    public void setStart(Integer start) {
        this.start = start;
    }
}
